﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;

namespace Beat_em_Up
{
    public abstract class Scenes
    {
        protected Player player;
        protected Model playerMdl;
        protected Camera camera;
        protected GameTime gameTime;

        public virtual void Initialize()
        {
        }

        public virtual void LoadContent(ContentManager Content)
        {
            playerMdl = Content.Load<Model>("player");
            player = new Player(playerMdl, Vector3.Zero);
        }

        public virtual void Update(GameTime gameTime)
        {
            player.Update();
        }

        public virtual void Draw()
        {
            player.Draw(
                        Matrix.CreateRotationX((float)
                        gameTime.TotalGameTime.TotalSeconds) *
                        Matrix.CreateRotationY((float)
                        gameTime.TotalGameTime.TotalSeconds / 2) *
                        Matrix.CreateScale(3.0f),
                        camera.View, camera.Projection);
        }
    }
}